package pile.pay.mapper;

import org.apache.ibatis.annotations.Param;
import pile.pay.entity.MemberSubsidiary;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-28
 */
@Repository
public interface MemberSubsidiaryMapper extends BaseMapper<MemberSubsidiary> {

    /**
     * 根据渠道 和 用户ID查询 openid
     * @param channel
     * @param memberId
     * @return
     */
    MemberSubsidiary selectOpenidByType(@Param("channel") Integer channel, @Param("memberId")Integer memberId);
}
